package com.open.dome.order.result;

import lombok.Data;

import java.time.LocalDateTime;
import java.time.ZoneOffset;

/**
 * Created by IntelliJ IDEA.
 * Author: evanwu
 * Time: 2021/9/27 2:51 下午
 * desc:
 */
@Data
public class OrderTraceResult {

    private Long id;
    private String comCode;
    private String waybillNo;
    private String trace;
    private Long createTime;

    public LocalDateTime getTime () {
        return LocalDateTime.ofEpochSecond(createTime / 1000, 0, ZoneOffset.ofHours(8));
    }
}
